package com.earthea.datasource.lock;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LockMapper {
    int add(LockEntity lockEntity);

    int tryLock(LockEntity lockEntity);

    int unLock(String lockId);

    LockEntity getLock(String lockId);

    void create();
}
